Optimal. Leaf size=76 \[ \frac {B \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 B \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3 B x}{8}-\frac {C \sin ^3(c+d x)}{3 d}+\frac {C \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {4047, 2635, 8, 12, 2633} \[ \frac {B \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 B \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3 B x}{8}-\frac {C \sin ^3(c+d x)}{3 d}+\frac {C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 2633
Rule 2635
Rule 4047
Rubi steps
\begin {align*} \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=B \int \cos ^4(c+d x) \, dx+\int C \cos ^3(c+d x) \, dx\\ &=\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {1}{4} (3 B) \int \cos ^2(c+d x) \, dx+C \int \cos ^3(c+d x) \, dx\\ &=\frac {3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {1}{8} (3 B) \int 1 \, dx-\frac {C \operatorname {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac {3 B x}{8}+\frac {C \sin (c+d x)}{d}+\frac {3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {C \sin ^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 73, normalized size = 0.96 \[ \frac {3 B (c+d x)}{8 d}+\frac {B \sin (2 (c+d x))}{4 d}+\frac {B \sin (4 (c+d x))}{32 d}-\frac {C \sin ^3(c+d x)}{3 d}+\frac {C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 53, normalized size = 0.70 \[ \frac {9 \, B d x + {\left (6 \, B \cos \left (d x + c\right )^{3} + 8 \, C \cos \left (d x + c\right )^{2} + 9 \, B \cos \left (d x + c\right ) + 16 \, C\right )} \sin \left (d x + c\right )}{24 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.22, size = 140, normalized size = 1.84 \[ \frac {9 \, {\left (d x + c\right )} B - \frac {2 \, {\left (15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 24 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 40 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 40 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 24 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4}}}{24 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.43, size = 60, normalized size = 0.79 \[ \frac {B \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {C \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 57, normalized size = 0.75 \[ \frac {3 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B - 32 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C}{96 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.50, size = 75, normalized size = 0.99 \[ \frac {3\,B\,x}{8}+\frac {2\,C\,\sin \left (c+d\,x\right )}{3\,d}+\frac {3\,B\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{8\,d}+\frac {B\,{\cos \left (c+d\,x\right )}^3\,\sin \left (c+d\,x\right )}{4\,d}+\frac {C\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________